package com.markerhub.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.markerhub.entity.SysDictValue;
import com.markerhub.mapper.SysDictValueMapper;
import com.markerhub.service.SysDictValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jsx on 2023/1/15
 **/
@Service
public class SysDictValueServiceImpl extends ServiceImpl<SysDictValueMapper, SysDictValue> implements SysDictValueService {

    @Autowired
    SysDictValueMapper sysDictValueMapper;

    @Override
    public List<SysDictValue> getList(String typeCode) {
        return this.sysDictValueMapper.selectListByTypeCode(typeCode);
    }

    @Override
    public boolean isNoHealthyInfo(List<String> content) {
        return this.sysDictValueMapper.selectNoHealth(content).size() == 0 ;
    }
}
